The build process
This section provides an overview about the sequence of operations applied by MkNodes when running the full build process.
Collect build artifacts
MkNodes' DocBuilder walks the node tree and renders every page in the Markdown
flavour of the engine (material for Zensical, github for plain Markdown), incl.
front matter, rendered with jinja2. It aggregates the required resources
(CSS / JS / Markdown extensions) and the page templates and converts the template
blocks to HTML. The result is an engine-neutral BuildOutput.
Write the site input
A writer turns the BuildOutput into the engine input. The ZensicalWriter writes the
pages and assets into the docs folder and the
template overrides into the theme custom_dir (both tracked in a generated
.gitignore, hand-written files are never overwritten) as well as
mkdocs.generated.yml, which inherits from mkdocs.yml and adds the nav,
the Markdown extensions and the extra CSS / JS.
Page info
Code for this page
mknodes.manual.site._
@nav.route.page("The build process", hide="toc")
def _(page: mk.MkPage):
page += INTRO
page += mk.MkTimeline(paths.RESOURCES / "timeline_data.toml")
Resources
Resources(css=[],
markdown_extensions={},
plugins=[],
js=[],
assets=[Asset('scrollreveal_cab73ad.js'),
Asset('timeline_577131c.js'),
Asset('timeline_63b66a4.css')],
packages=[])
Metadata
created:
source_filename: /home/runner/work/mknodes/mknodes/src/mknodes/manual/site/__init__.py
source_function: _
source_line_no: 39
hide:
- toc
title: The build process